/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package client.dal;

import client.entity.FeedbackSystem;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import util.HibernateUtil;

/**
 *
 * @author mrlucky
 */
public class FeedBackDAL {

    public FeedBackDAL() {
    }
    
    public void insertFeedBack(FeedbackSystem fs) {
        SessionFactory sf = HibernateUtil.getSessionFactory();
        Session ss = sf.openSession();
        ss.beginTransaction().begin();
        ss.save(fs);
        ss.beginTransaction().commit();
        ss.flush();
        ss.close();
    }
}
